﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ChiTiet.aspx.cs" Inherits="Web.ChiTiet" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="c_center">
<div style="text-align:center; color:#521422; padding-top:5px; border-bottom:1px solid #CCDEEE;">
<h2>Chi tiết sản phẩm</h2>
</div>
<div>

    <asp:DataList ID="DataList1" runat="server" 
        onitemcommand="DataList1_ItemCommand">

    <ItemTemplate>
    <center>
    <table class="chitiet">
    <tr>
    <td class="name">Mã sản phẩm</td>
    <td class="value"><asp:Label ID="LbmaSP" runat="server" Text='<%#Eval("MaSP") %>'></asp:Label> </td>
    <td class="name">Tên sản phẩm</td>
    <td class="value"><asp:Label ID="LbTenSP" runat="server" Text='<%#Eval("TenSP") %>'></asp:Label></td>
    </tr>
        <tr>
    <td class="name">Kiểu dáng</td>
    <td class="value"><asp:Label ID="lbMausac" runat="server" Text='<%#Eval("MauSac") %>'></asp:Label></td>
    <td class="name">Chất liệu</td>
    <td class="value"><asp:Label ID="Lbchatlieu" runat="server" Text='<%#Eval("ChatLieu") %>'></asp:Label></td>
    </tr>
    
        <tr>
        <td class="name">Màu sắc</td>
    <td class="value"><asp:Label ID="Lbmau" runat="server" Text='<%#Eval("MauSac") %>'></asp:Label></td>
    <td class="name">Giá</td>
    <td class="value" style="color:Red; font-weight:bold; font-size:15px;"><asp:Label ID="LbGia" runat="server" Text='<%#Eval("Gia") %>'></asp:Label></td>
    
    </tr>
    
    <td colspan="3" style="" align="right">
    <div style="color:Red"><asp:Label ID="Lbthongbao" runat="server" Text=""></asp:Label></div>
    Số lượng:<asp:TextBox ID="TxtSoLuong" Width="30px" Text="1" runat="server"></asp:TextBox>
       </td>
        <td>
<asp:Button ID="BtnDatMua" CommandName="datmua" CommandArgument='<%#Eval("MaSP") %>'  runat="server" Text="Đặt mua"></asp:Button>
        </td>
    </tr>
    </table>
    <center>
    <div style="float:left; padding:10px 0 10px 95px">
    
    <asp:Image ID="Image1" Width="390px" ImageUrl="~/Images/hinhnon/nk1.jpg" runat="server"></asp:Image>
    
    </div>
    </center>
    <div style=" padding:0px 0 0 0px; ">
       </div>
    </center>
    </ItemTemplate>
        </asp:DataList>
        
        
        </div>
        </div>
</asp:Content>
